package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel("自由出售藏品价格数据")
public class SellCollectionPriceDataVO {
    @ApiModelProperty("最高指导价")
    private String maxPrice;

    @ApiModelProperty("商品名称")
    private String firstTitle;

    @ApiModelProperty("缩略图")
    private String creationContent;

    public void setMaxPrice(BigDecimal maxPrice) {
        this.maxPrice = maxPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }

}
